package com.example.check.service;

import com.example.check.entity.RoleEntity;

import java.util.ArrayList;

/**
 * Created by Tony Yao on 2017/7/15.
 */
public interface RoleService {
    public ArrayList<RoleEntity> searchAllRole() throws Exception;

    public ArrayList<RoleEntity> SearchRoleById(int id)throws Exception;

    public ArrayList<RoleEntity> SearchRoleByField(String field, String code) throws Exception;

    public ArrayList<RoleEntity> SearchRoleLikeByField(String field, String code)throws Exception;

    public void deleteRoleById(int id) throws Exception;

    public void insertRole(RoleEntity role) throws Exception;

    public void editRole(RoleEntity role) throws Exception;

}